﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="wucThumbPreview.ascx.cs" Inherits="Modules_WebsiteBackEnd_wucThumbPreview" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Label ID="lblImageThumbDir" runat="server" Text="" Visible="false"></asp:Label>
<asp:Label ID="lblResourceDir" runat="server" Text="" Visible="false"></asp:Label>
<asp:Label ID="lblNewsType" runat="server" Text="" Visible="false"></asp:Label>
<asp:UpdatePanel ID="UpdatePanel" runat="server">
    <ContentTemplate>
        <table align="center" border="0" cellpadding="0" cellspacing="0" width="700px" height="390px"
            bgcolor="#f4f4f4">
            <tr>
                <td align="center" width="390px" valign="middle" bgcolor="#ffffff">
                    <asp:Image ID="imgThumbViewer" runat="server" AlternateText="" ImageAlign="Middle"
                        ImageUrl="" />
                </td>
                <td width=10px>&nbsp;</td>                
                <td align="center" width="300px" valign="top">
                    <table align="left" border="0" cellpadding="0" cellspacing="0" width="100%">
                        <tr height="10px">
                            <td align="left" colspan="2">&nbsp;                           
                            </td>
                        </tr>
                        <tr height="30px">
                            <td align="left" colspan="2">
                                <b>Chọn ảnh đại diện:</b><telerik:RadFormDecorator ID="rfdFormDecorator"
                                    runat="server" Skin="Vista" DecoratedControls="all"></telerik:RadFormDecorator>
                            </td>
                        </tr>
                        <tr>
                            <td align="left" valign="top">
                                <telerik:RadUpload ID="rulImage" runat="server" OverwriteExistingFiles="true" AllowedFileExtensions=".jpg,.jpeg,.png,.gif"
                                    InitialFileInputsCount="1" MaxFileInputsCount="1" MaxFileSize="20971520"
                                    ControlObjectsVisibility="none" Skin="Vista" Width="150"/>
                            </td>                            
                            <td align="left" valign="top"><asp:Button ID="btnUpload" runat="server" Text="Upload" OnClick="btnUpload_Click" /></td>
                        </tr>                        
                        <tr><td height="70">&nbsp;</td></tr>
                    </table>                    
                </td>
            </tr>
        </table>
    </ContentTemplate>
    <Triggers>
        <asp:PostBackTrigger ControlID="btnUpload" />
    </Triggers>
</asp:UpdatePanel>